#include "my_head.h"

bool UserShow(p_user_node head)
{
    int i=1;
    if(head==NULL)
    {
        printf("error\n");
        return false;
    }
    p_user_node  p=head->next;
    while(p!=NULL)
    {
        printf("第%d个用户角色为:%s\n",i,p->data.user_role);
        printf("第%d个用户的用户名为:%s\n",i,p->data.user_name);
        printf("第%d个用户账号为:%d\n",i,p->data.user_account.id);
        printf("第%d个用户密码为:%s\n",i,p->data.user_account.password);
        printf("第%d个用户权限为:%d\n",i,p->data.user_account.permission);
        printf("=============\n");
        p=p->next;
        i++;
    }
    return true;
}